/**
 * 
 */
package demo.model;

import org.hibernate.Session;
import org.hibernate.Transaction;

import demo.model.bean.Acces;
import demo.model.bean.Order;

/**
 * @author virgil
 *
 */
public class AccesDAO {

	public void add(Acces acces) {
		Session session = StoreHibernateUtil.openSession();
		Transaction t = session.beginTransaction();

		session.persist(acces);
		t.commit();

		session.close();
	}
}
